public class Test {

    public static void main(String[] args) throws InterruptedException {
        OneThread oneThread = new OneThread();
        oneThread.start();
        Thread.sleep(1000);
        oneThread.setRunning(false);

    }

}